//
//  SingerListCollectionViewCell.m
//  YanMusicPlayer
//
//  Created by 1564335 on 15-6-11.
//  Copyright (c) 2015年 胡岩 All rights reserved.
//

#import "SingerListCollectionViewCell.h"

@implementation SingerListCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
    }
    return self;
}


- (void)setSingerListModel:(SingerListModel *)singerListModel
{
    _singerListModel = singerListModel;
    self.titleLabel.text = _singerListModel.singer_name;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
//    self.bgImage.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    self.titleLabel.frame = CGRectMake(0, self.contentView.frame.size.height - 30, self.contentView.frame.size.width, 20);
//    self.titleLabel.backgroundColor = [UIColor blackColor];
    self.titleLabel.alpha = 0.7;
    self.titleLabel.font = [UIFont systemFontOfSize:14];
//    self.titleLabel.numberOfLines = 0;
//    [self.titleLabel sizeToFit];
//    self.titleLabel
//    _titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.textColor = [UIColor blackColor];
}


@end
